package com.service;

import com.dao.accountdao;
import com.domain.account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("lalala")
public class accountserviceImpl implements accountservice {
    @Autowired
    private accountdao accountdao;
    public com.dao.accountdao getAccountdao() {
        return accountdao;
    }

    public void setAccountdao(com.dao.accountdao accountdao) {
        this.accountdao = accountdao;
    }

    @Override
    public void insert(account account) {
        accountdao.insert(account);
    }

    @Override
    public List<account> find() {
        List<account>list=accountdao.select();
        return list;
    }
}
